package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */

/**
 * 订单详情表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oi_id", type = IdType.AUTO)
    private Integer oiId;

    /**
     * 菜品表外键
     */
    @TableField("oi_menu_Id")
    private Integer oiMenuId;

    /**
     * 订单表外键
     */
    private Integer oiOrderId;

    /**
     * 点菜数量
     */
    private Integer oiSize;

    /**
     * 当前菜品状态(用户退菜)
     */
    private Integer oiState;

    /**
     * 订餐时间
     */
    private Date oiDownTime;


    //菜品名称
    private Menu menu;

    //订单编号
    private Order order;

    //会员优惠
    private Users users;


}
